# views.py

from django.http import HttpResponse
from django.shortcuts import render_to_response

def index(request):
    try:
        user = request.session['user']
    except:
        user = None
    return render_to_response('index.html', {'user': user})
